package com.hou.hpsj_springboot.service.Impl;

import com.hou.hpsj_springboot.bean.UserAndVideos_Ext;
import com.hou.hpsj_springboot.bean.Users;
import com.hou.hpsj_springboot.mapper.UserMapper;
import com.hou.hpsj_springboot.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
@Service
public class UserServiceImpl implements UserService {

@Resource
UserMapper userMapper;

    @Override
    public ArrayList<UserAndVideos_Ext> getUserWork(int id) {
        return  userMapper.getUserWork(id);
    }

    @Override
    public ArrayList<Users> get(String email) {

        return userMapper.get(email);
    }

    @Override
    public void update(Users users) {
        userMapper.update(users);
    }
}
